
package com.tools.cleanmaster.ui.card.viewholder;

import android.app.Activity;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.tools.ad.EntranceType;
import com.tools.cleanmaster.CleanApplication;
import com.tools.cleanmaster.R;
import com.tools.cleanmaster.ui.card.ACardItem;

public class DefaultCardViewHolder extends ACardViewHolder {
    public ImageView mImageView;
    public TextView mTitle;
    public TextView mContent;
    public ImageView mAd;
    public RelativeLayout mWholeLayout;
    public TextView mBtn;

    @Override
    public View initView(Activity activity, ACardItem card, int pos, EntranceType entrance) {
        LayoutInflater layoutInflater = LayoutInflater.from(CleanApplication.getInstance());
        mItemView = layoutInflater.inflate(R.layout.default_card, null);
        mImageView = mItemView.findViewById(R.id.toolbox_normal_list_item_icon);
        mTitle = mItemView.findViewById(R.id.func_title);
        mContent = mItemView.findViewById(R.id.func_desc);
        mWholeLayout = mItemView.findViewById(R.id.func_card_container);
        mBtn = mItemView.findViewById(R.id.func_execute);
        mAd = mItemView.findViewById(R.id.func_ad_corner);
        return mItemView;
    }
}
